/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package unc.pds.login;

/*import com.sun.enterprise.security.auth.realm.AuthenticationHandler;
import com.sun.enterprise.security.auth.realm.BadRealmException;
import com.sun.enterprise.security.auth.realm.InvalidOperationException;
import com.sun.enterprise.security.auth.realm.NoSuchRealmException;
import com.sun.enterprise.security.auth.realm.NoSuchUserException;*/
import java.util.Arrays;
import java.util.Collections;
import java.util.Enumeration;
import java.util.Properties;

/**
 *
 * @author AIN
 */
public class PDSRealm/* extends com.sun.appserv.security.AppservRealm */{
/*
    public String getAuthType() {
        return "magic";
    }

    public Enumeration getGroupNames( String string ) throws InvalidOperationException, NoSuchUserException {
        Object[] s = {"users", "guests"};
        return Collections.enumeration( Arrays.asList(s) );
    }

    protected void init( Properties props ) throws BadRealmException, NoSuchRealmException {
        super.init( props );

        System.err.println("PDSRealm init" );

        if( props.containsKey( JAAS_CONTEXT_PARAM ) )
            setProperty( JAAS_CONTEXT_PARAM, props.getProperty( JAAS_CONTEXT_PARAM ) );
    }

    public AuthenticationHandler getAuthenticationHandler() {
        return null;
    }*/
}
